package odgs.transaction;

import odgs.Directory;
import odgs.Transaction;

public class DirectoryAddTransaction extends Transaction
{
	private Directory	dir;

	public DirectoryAddTransaction(long id)
	{
		super(id);
	}

	@Override
	public String getName()
	{
		return "DirectoryAddTransaction";
	}

	public void setSource(Directory dir)
	{
		this.dir = dir;
	}

	public Directory getSource()
	{
		return dir;
	}

	@Override
	public boolean isFileTrans()
	{
		return false;
	}
	
	@Override
	public String toString()
	{
		return "Directory Add : " + dir.getName();
	}
}